package com.woniuxy.controller;

import com.woniuxy.sender.LengthSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/6 0006-下午 2:34
 */
@RestController
@RequestMapping("/len")
public class QueueLength {
    @Autowired
    private LengthSender lengthSender;
    @RequestMapping("/send")
    public String send(){
        for (int i = 0; i < 1000; i++) {
            lengthSender.exchange(i);
        }
        return "";
    }
}
